﻿using System;
using System.Net.Mail;

namespace FaceOZ.Data
{
    public static class MailService
    {
        public static string defaultSmtpEmail = "MoneyTrackerNoReply@gmail.com";

        public static void SendEMail(string mailcontent, string receiver, string title)
        {
            MailMessage message = new MailMessage(defaultSmtpEmail, receiver, title, mailcontent);
            message.From = new MailAddress(defaultSmtpEmail, "Money Tracker");
            message.BodyEncoding = System.Text.Encoding.UTF8;
            message.IsBodyHtml = true;
            SmtpClient client = new SmtpClient();

            client.Send(message);
        }
    }
}